﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Administrator/EHTAdmin.Master" AutoEventWireup="true" CodeBehind="EHTImageCompany.aspx.cs" Inherits="EHTWebsiteProject.Administrator.EHTImageCompany" %>
<%@ Register src="Controls/PaggingControl.ascx" tagname="PaggingControl" tagprefix="uc1" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MenuModulContent" runat="server">
 <div class="MenuSub-Left" >
        <table>
            <tr>
                <td> <img alt="" src="../images/EHTgiaodien/icon-48-category.png" width="48px" height="48px" /></td>               
                <td><asp:Label ID="lbImageManager" runat="server" Text="Quản lý hình ảnh công ty " ></asp:Label></td>                
            </tr>
        </table>           
    </div>
    <div class="MenuSub-Right" align="right">
        <table style="height:60px">
            <tr>   
             <td valign="middle">
                    <div class="add-edit-del">  
                            <asp:ImageButton ID="ImaTat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-unpublish.png" runat="server" 
                                width="32px" height="32px" class="imagboder" onclick="ImaTat_Click"  />                     
                            <br />
                            <asp:Label ID="lbTat" runat="server" Text="Tắt"></asp:Label>                       
                    </div>
                </td>
                <td valign="middle">
                    <div class="add-edit-del">   
                            <asp:ImageButton ID="ImgBat" 
                                ImageUrl="~/images/EHTgiaodien/icon-32-publish.png" runat="server" width="32px" 
                                height="32px" class="imagboder" onclick="ImgBat_Click"  />                     
                            <br />                                                 
                            <asp:Label ID="lbBat" runat="server" Text="Bật"></asp:Label>                       
                    </div>
                </td>                                                                                         
                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgDel" ImageUrl="~/images/EHTgiaodien/icon-32-delete.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" 
                                OnClientClick="return confirm('Are you sure you want to delete?');" 
                             onclick="ImgDel_Click" />                                                     
                            <br />
                            <asp:Label ID="lbDel" runat="server" Text="Xóa"></asp:Label>       
                    </div>
                </td>

                <td valign="middle">
                    <div class="add-edit-del">
                         <asp:ImageButton ID="ImgEdit" ImageUrl="~/images/EHTgiaodien/icon-32-edit.png" 
                                runat="server" width="32px" height="32px" CssClass="imagboder" onclick="ImgEdit_Click" 
                                />  <br />                                                                      
                            <asp:Label ID="lbEdit" runat="server" Text="Sửa"></asp:Label> 
                    </div>
                </td>
               
               <td valign="middle">
                    <div class="add-edit-del">
                        <a href="EHTImageCompanyUI.aspx">
                            <img alt="" src="../images/EHTgiaodien/icon-32-new.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbAddNew" runat="server" Text="Thêm mới"></asp:Label>
                        </a>
                    </div>
                </td>
                 <td valign="middle">
                    <div class="add-edit-del">
                        <a href="#">
                            <img alt="" src="../images/EHTgiaodien/icon-32-help.png" width="32px" height="32px" class="imagboder" /><br />
                            <asp:Label ID="lbHelp" runat="server" Text="Trợ giúp"></asp:Label>
                        </a>
                    </div>
                </td>                
            </tr>
        </table>
    </div> 
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="ContentMain" runat="server">
 <div style="padding:5px 0px 0px 0px" align="left">
        <div class="SanPham" >
            <a href="EHTFrontPage.aspx">
                <asp:Label ID="lbThongTinCongTy" runat="server" Text="Thông tin công ty"></asp:Label>
            </a>
        </div>        
        <div class="SanPham">
           <a href="EHTDichVu.aspx">
             <asp:Label ID="lbDichVu" runat="server" Text="Dịch vụ"></asp:Label>
           </a>
        </div>
         <div class="SanPham">
           <a href="EHTHoTro.aspx">
             <asp:Label ID="lbHoTro" runat="server" Text="Hỗ trợ"></asp:Label>
           </a>
        </div>
         <div class="SanPham">
           <a href="EHTImageCompany.aspx">
             <asp:Label ID="lbHinhANhCongTy" runat="server" Text="Hình ảnh công ty"></asp:Label>
           </a>
        </div>
    </div>
    <br />
    <div style="padding:10px 0px 0px 10px" align="left">
        <asp:Literal ID="ltrErorr" runat="server"></asp:Literal>
    </div>
        <div style="padding-top:5px;">
        <asp:Panel ID="pnImageCompany" runat="server">
            <asp:Repeater ID="rpImageCompany" runat="server" 
            onitemdatabound="rpImageCompany_ItemDataBound" >           
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                                    </th>                         
                                   
                                    <th>
                                        <asp:Label ID="lbID" runat="server" Text="STT"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="lbHinhAnh" runat="server" Text=" Hình ảnh"></asp:Label>                            
                                    </th>
                                     <th>
                                        <asp:Label ID="lbMota" runat="server" Text="Mô tả"></asp:Label>                            
                                    </th>
                                    
                                    <th>
                                        <asp:Label ID="lbTrangThai" runat="server" Text=" Trạng thái "></asp:Label>                             
                                    </th>                                                                                                            
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("HinhAnhID")%>'></asp:Label>
                        </td>
                        <td>
                            <%#Eval("IndexId") %>
                        </td>                        
                        <td style="width:500px">                       
                            <img ID="ImageBanner" src='/ImageDatas/CompanyImages/<%#Eval("HinhAnhUrl") %>' Width="400px"/>
                        </td>
                        <td >                       
                             <%#Eval("MotaVN")%>
                        </td>
                         <td >
                            <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("Publish")%>' Visible="false"></asp:Label>
                            <asp:Image ID="ImagStatus" ImageUrl="~/images/tick.png" runat="server" />
                        </td>                         
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
        </asp:Panel> 
        <asp:Panel ID="pnImageCompanyOther" runat="server">
            <asp:Repeater ID="rpImageCompanyOther" runat="server" 
            onitemdatabound="rpImageCompanyOther_ItemDataBound" >           
        <HeaderTemplate>
            <table ID="table" border="0" cellpadding="0" cellspacing="0" >
                 <thead>
                    <tr>
                                     <th>
                                        <asp:CheckBox ID="ckAll" runat="server" AutoPostBack="true" OnCheckedChanged="CheckAll" />
                                    </th>                         
                                   
                                    <th>
                                        <asp:Label ID="lbID" runat="server" Text="Number Order"></asp:Label>
                                    </th>
                                    <th>
                                        <asp:Label ID="lbHinhAnh" runat="server" Text=" Image"></asp:Label>                            
                                    </th>
                                      <th>
                                        <asp:Label ID="lbMota" runat="server" Text="Décription"></asp:Label>                            
                                    </th>
                                    <th>
                                        <asp:Label ID="lbTrangThai" runat="server" Text=" Status "></asp:Label>                             
                                    </th>                                                                                                            
                    </tr>
                 </thead>
                 <tbody>            
        </HeaderTemplate>
        <ItemTemplate>
                 <tr>
                        <td>
                            <asp:CheckBox ID="ckMenu"  runat="server" />
                            <asp:Label ID="lbDelID" runat="server" Visible="false" Text='<%#Eval("BannerID")%>'></asp:Label>
                        </td>
                        <td>
                            <%#Eval("IndexId") %>
                        </td>                        
                        <td style="width:500px">                       
                            <img ID="ImageBanner" src='/ImageDatas/CompanyImages/<%#Eval("HinhAnhUrl") %>' Width="400px"/>
                        </td>
                        <td >                       
                             <%#Eval("MotaOther")%>
                        </td>
                       
                         <td >
                            <asp:Label ID="lbStatus" runat="server" Text='<%#Eval("Publish")%>' Visible="false"></asp:Label>
                            <asp:Image ID="ImagStatus" ImageUrl="~/images/tick.png" runat="server" />
                        </td>                         
                    </tr>
        </ItemTemplate>
        <FooterTemplate>
                </tbody>
             </table>
        </FooterTemplate>
    </asp:Repeater>
        </asp:Panel>
    </div> 
    <div align="center" style="padding:10px 0px 10px 0px">        
        <table>
            <tr>
                
                <td>
                    <uc1:paggingcontrol ID="PaggingControl1" PageSize="30" runat="server" />
                </td>
            </tr>
        </table>
        
    </div> 
</asp:Content>
